/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package primitive_vs_object_datatypes;

/**
 *
 * @author Iskandar Sarkawi
 */
public class UsingObjectInteger {

    public static void main(String[] args) {
        System.out.println(Integer.valueOf(3)); //display3
        System.out.println(Integer.valueOf(3).equals(3)); //display true
        System.out.println(Integer.valueOf(3).equals(Integer.valueOf(3))); //display true
    }

}
